package com.gwtintegration.smartrf.server;

import java.util.ArrayList;
import java.util.List;

public class DataResponse<T> {

	private Integer totalRows;

	private List<T> content;

	public DataResponse() {}

	public DataResponse(List<T> content, Integer totalRows) {
		this.content = content;
		this.totalRows = totalRows;
	}

	public Integer getTotalRows() {
		return totalRows;
	}

	public void setTotalRows(Integer totalRows) {
		this.totalRows = totalRows;
	}

	public List<T> getContent() {
		if (content == null) {
			content = new ArrayList<T>();
		}
		return content;
	}

	public void setContent(List<T> content) {
		this.content = content;
	}
}
